﻿@model SportsStore.Domain.Entities.Product
<div class="imgWrp">
    
    @if (Model.Id>0)
    {
        
        <a href="@Url.Action("Item","Product",new{ ProductID = Model.Id})">
            <img src="@Url.Action("GetImage", "Product", new { ProductID = Model.Id })" alt="@Model.Name"/>
        </a>
    }
    <div class="name">
        <a href="@Url.Action("Item","Product",new{ ProductID = Model.Id})">@Model.Name</a>
    </div>
    
</div>
